//
//  XYJScenicViewController.m
//  徙游记-01
//
//  Created by hcios on 2017/6/22.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJScenicViewController.h"

#import "SelectedView.h"
#import "InternalViewController.h"
#import "ExternalViewController.h"


@interface XYJScenicViewController ()

@end

@implementation XYJScenicViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.title = @"景点";
    
    InternalViewController *IVC = [[InternalViewController alloc] init];
    ExternalViewController *EVC = [[ExternalViewController alloc] init];
    
    NSArray *nameArr = @[@"国外",@"国内"];
    NSArray *VCArr = @[IVC,EVC];
    
    SelectedView *selectedView = [[SelectedView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT - 48) buttonName:nameArr controllers:VCArr parentController:self];
    [self.view addSubview:selectedView];
}

@end
